import { defineComponent } from 'vue';
import 'echarts';

export default defineComponent({
  name: 'Chart',
  props: {
    option: Object,
    width: String,
    height: String,
  },
  render: (props: Record<string, unknown>) => {
    return <v-chart style={{ width: props.width || '100%', height: props.height || '360px' }} option={props.option} />;
  },
});
